package cn.xiaopengstack.infrastructure.persistent.dao;

import cn.xiaopengstack.infrastructure.persistent.po.NotifyTask;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author jiangyangang
* @description 针对表【notify_task】的数据库操作Mapper
* @createDate 2025-10-23 17:33:53
* @Entity cn.xiaopengstack.infrastructure.persistent.po.NotifyTask
*/
@Mapper
public interface INotifyTaskDao {

    int insertSelective(NotifyTask record);


    List<NotifyTask> queryUnExecutedNotifyTaskList();

    List<NotifyTask> queryUnExecutedNotifyTaskListByTeamId(@Param("teamId") String teamId);

    int updateStatusByTeamId(@Param("teamId") String teamId, @Param("status") Integer status);

    int updateStatusAndIncrCountByTeamId(@Param("teamId") String teamId, @Param("status") Integer code);
}
